home *** CD-ROM | disk | FTP | other *** search
/ The Cartoon Guide to Physics / The Cartoon Guide to Physics.iso / pc / physdata / shared.dir / 00559_scroll.ls < prev    next >
Encoding:
Text File  |  1995-09-05  |  600 b   |  21 lines

  1. on mouseDown
  2.   global StartLine, EndLine
  3.   if the mouseV > 367 then
  4.     if the number of lines in field "termpath" > (EndLine + 1) then
  5.       puppetSound("Click")
  6.       set EndLine to EndLine + 1
  7.       set StartLine to StartLine + 1
  8.       put line StartLine to EndLine of field "termPath" into field "path"
  9.     end if
  10.   else
  11.     if the mouseV <= 360 then
  12.       if StartLine <> 1 then
  13.         puppetSound("Click")
  14.         set EndLine to EndLine - 1
  15.         set StartLine to StartLine - 1
  16.         put line StartLine to EndLine of field "termPath" into field "path"
  17.       end if
  18.     end if
  19.   end if
  20. end
  21.